package handler

import (
	"strings"

	"github.com/tidwall/gjson"
)

func HandlerGroupMessage(data gjson.Result) {
	uid := data.Get("data.user_id").String()
	group_id := data.Get("data.group_id").String()

	message := data.Get("data.message").String()
	m := strings.Split(message, " ")
	switch m[0] {
	case "日常":
		DailyTasksHandle(uid, group_id, m[1])
	case "服务器状态":
		ServerStatusHandle(uid, group_id, m[1])

	}
}
